import request from '@/utils/request'

// 查询录音时长上限列表
export function listLimit(query) {
  return request({
    url: '/recitation_admin/limit/list',
    method: 'get',
    params: query
  })
}

// 查询录音时长上限详细
export function getLimit(recordingLimitId) {
  return request({
    url: '/recitation_admin/limit/' + recordingLimitId,
    method: 'get'
  })
}

// 新增录音时长上限
export function addLimit(data) {
  return request({
    url: '/recitation_admin/limit',
    method: 'post',
    data: data
  })
}

// 修改录音时长上限
export function updateLimit(data) {
  return request({
    url: '/recitation_admin/limit',
    method: 'put',
    data: data
  })
}

// 删除录音时长上限
export function delLimit(recordingLimitId) {
  return request({
    url: '/recitation_admin/limit/' + recordingLimitId,
    method: 'delete'
  })
}
// 修改录音时长上限
export function uPrecordingLimit(data) {
  return request({
    url: "/recitation_admin/limit/update",
    method: "put",
    data: data
  });
}
